package com.jilijili.pojo.bo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;


@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class RegisterLoginBo {

    @NotBlank(message = "手机号不能为空")
    @Length(min = 11,max = 11, message = "手机号长度不正确")
    private String mobile;
    @NotBlank(message = "验证码不能为空")
    @Length(min = 4,max = 6, message = "验证码长度不正确")
    private String smsCode;

}
